The energy transition in Europe and China