Virtuous and vicious cycles in the energy transition