On-Chip Loop-Terminated Mach-Zehnder Interferometer Gas Sensor