Rare-earth elements recovery from electronic waste