Close to 30% of cars sold this year to be electric as countries and consumers respond to energy crisis