Discuss the role of mechanical engineering in the development of medical devices and how engineers ensure their safety and efficacy.