Scientists have developed a way to recycle rare earth elements found in discarded electronics without using acid or harsh chemicals.