Magnetic properties of rare earth-transition metal compounds