Far infrared imaging spectrometers for the next generation astronomical instruments