State of Charge Estimation of Lithium Batteries Based on Extended Kalman Filter and Temperature Compensation