Li-ion & LiFePO4 batteries