Rare earth metal-containing ionic liquids