The transition to electric vehicles won't reduce carbon emissions unless countries clean up their electricity grids.