GM and Ford are battling to lead the transition to electric vehicles.