Calibration of mid-infrared transmission measurements for hydrocarbon detection and propane concentration measurements in harsh environments by using a fiber optical sensor