Influence of energy quality management on CO2 emissions in operation optimization of a distributed energy system