Monitoring solid phase reactions with ion-selective electrode