how to process rare earth