Classification and identification of molecules through factor analysis method based on terahertz spectroscopy.