Development and construction of a compact infrared system for the detection of hazardous substances