On-Chip Solutions for Future THz Imaging Spectrometers