Determination of the optical and the thermal properties of an absorbing medium by using infrared thermometry