Dual ion-exchange method for the controlled addition of a prescribed ionic species to a solution