Discuss the techniques used in mechanical engineering to enhance energy security, including the development of renewable energy systems and energy-efficient technologies.