Rayleigh and compton scattering contributions to x-ray fluorescence intensity