Applications of spectroscopy and chemometrics in the pulp and paper industry