Spectrometry of the photon beam from an X-ray tube by X-ray fluorescence