how to process rare earth ore