Magnetoelastic model for the relaxation of lanthanide ions in YBa 2 Cu 3 O 7 − δ observed by neutron scattering