Energy consumption and greenhouse gas emissions by buildings: A multi-scale perspective