Optoacoustic detection with near-infrared diode lasers: trace gases and short-lived molecules