Impedance spectroscopy characterization of lithium batteries with different ages in second life application