Imaging geomechanical properties of shales with infrared light