Waveguide‐Based On‐Chip Photothermal Spectroscopy for Gas Sensing