Separation of metal ions using a hexylthioglycolate resin