Lithium-Ion Battery Management System for Electric Vehicles