Temperature-dependent photoacoustic spectroscopy with a Helmholtz resonator