In situ monitoring of lithium-ion battery degradation using an electrochemical model