Review of Challenges and Opportunities in the Integration of Electric Vehicles to the Grid