what are rare earth minerals used for