Scientists are testing a cleaner way to pull rare earth elements from coal ash, red mud, and mine tailings.