LiFePO4 battery charging phases