An Intelligent Battery Management System with State-of-Charge Estimation for Lithium Batteries in Electric/Hybrid Vehicles