On the thermodynamics of the photoacoustic effect of condensed matter in gas cells