Selective transport between monovalent and divalent ions in electrodialysis