Micromirrors For Integrated Tunable Mid-Infrared Detectors And Emitters