Coal analysis by application of the partial least squares method to infrared spectra