Thin film encapsulated 1D thermoelectric detector in an IR microspectrometer