The Total-Reflection X-Ray Fluorescence Yield Formed by a Waveguide Resonator under Conditions of Ion Beam Excitation