Improvement of Battery Life and Energy Economy for Electric Vehicles with Two-Speed Transmission