A new method for mining rare earth metals that is better for the environment has been developed by Chinese scientists.