chemical extraction process in mining rare earth elements