Beam profile studies in an x-ray fluorescence spectrometer