Simple encoding of infrared spectra for pattern recognition. 1: Statistical examination of the effectiveness and information content by factor analysis