Energy use, cost and CO2 emissions of electric cars