Photoacoustic spectroscopy for trace gas detection with cryogenic and room-temperature continuous-wave quantum cascade lasers