Spin dynamics in the high-Tc superconductor La2−x−ySrxREyCuO4