Compounds of the rare earth metals