Battery Modeling for Electric Vehicles