Photothermal spectroscopy with femtojoule sensitivity using a micromechanical device