Absorption spectral imaging in the mid-infrared and its application in cancer diagnosis