Effect of phonon-magnon interaction on the Green functions of crystals and their light-scattering spectra