An optimal nonlinear observer for state-of-charge estimation of lithium-ion batteries | Synapse