How science could make recycling rare earth elements easier