An advanced multivariate approach for processing XRF spectral and hyperspectral data from non-invasive in situ analyses on painted surfaces