Prediction of energy consumption and CO2 emission by system dynamics approach