A modified approach to the quantitative XRF analysis of thick targets