Mid-wave infrared resonant cavity detector