Photoacoustic and related photothermal techniques