Multispectral imaging of paintings by optical scanning