Theoretical treatment of the dynamic response of ion-selective membrane electrodes