mining process for rare earth elements