Endoscopic optical coherence tomography based on a microelectromechanical mirror