Study on the Optimal Charging Method for Lithium-Ion Batteries Used in Electric Vehicles