Application of hyperspectral imaging for the study of pigments in paintings