Ion-capture electrodialysis using multifunctional adsorptive membranes