Method to characterize lithium-ion battery degradation