Dynamic electrochemistry with ionophore based ion-selective membranes