Electric Vehicles for Public Transportation in Smart Grids