Text this: Modeling and validation for performance analysis and impedance spectroscopy characterization of lithium-ion batteries