Spectrophonic humidity-trace detection in hydrogen and air