From New York City to Los Angeles, cities and utilities face cost, land and grid challenges in their efforts to electrify transportation systems.