Double-beam photoacoustic spectrometer for use in the ultraviolet, visible, and near-infrared spectral regions