Applications of ionic liquids in electrodeposition of rare earths