Text this: Determination of the optimal number of PLS components based on the combination of cross-validation and RMD-MRCD-PCA weighting function