Chemometrics for the direct analysis of solid samples by spectroscopic and chromatographic techniques