Prediction of Product Quality from Spectral Data Using the Partial Least-Squares Method