addPreprocessingStep: function to use by preprocessing step
Description
change the spectra and add preprocessing info, check whehther the object is valid
Usage
addPreprocessingStep(object, newSpectra, preprocessingInfo)
Arguments
newSpectra
numeric matrix new spectral data