Identification of substances by THz spectroscopy and multivariate analysis