A method for state-of-charge estimation of LiFePO4 batteries at dynamic currents and temperatures using particle filter