Infrared carbonate rock chemistry characterization