Lithium-ion battery operation