Microelectromechanical systems for endoscopic cardiac surgery