Task-specific ionic liquids for the separation and recovery of rare earth elements