Recovery of Sm(III), Co(II) and Cu(II) from waste SmCo magnet by ionic liquid-based selective precipitation process.