The mayors of the Bay Area's three largest cities pledged Thursday to make the region the electric-car capital of the country, unveiling plans to work with a Palo Alto startup to build the infrastructure needed to bring more electric cars to the road.