Extraction of metal ions using ion exchange resins