Detrimental changes in the composition of hydrogen ion-selective electrode and optode membranes