Competing magnetic interactions in 4f-based magnets studied by neutron scattering