Pre-processing methods for automatic pigment recognition through Vis–NIR reflectance spectra