Compounds of rare earth metals