A new model for XRF analysis of pigment layers