A MEMS-based thermal infrared emitter for an integrated NDIR spectrometer