A compact system for on-line electrochemical impedance spectroscopy on lithium-ion batteries