Global and local emissions of energy systems. Methodology and case studies .