Application of ionic liquids for the separation of rare earth metals