Lithium iron phosphate battery charging principle