Linking energy system and macroeconomic growth models