Mid-IR Thermo-Optic On-Chip Spectrometer on a III-V Semiconductor Platform