Discuss the techniques used in mechanical engineering to improve energy efficiency in buildings, including HVAC systems and building envelope design.