Method and device for measurement of impedance of lithium-ion cells by Marek Rist