Ion-exchange mechanisms