Photothermal spectroscopy methods for chemical analysis