Nonlinear State-Variable Method for Solving Physics-Based Li-Ion Cell Model with High-Frequency Inputs