Two-component photothermal gas sensor with a pump-probe-alternating technique