A forecast of the energy transition to 2050