Technology depends on rare earth minerals, but their extraction can harm our planet. Asteroids offer a plentiful source