Selective extraction of metal ions associated with humic acids