Slow drift modeling and compensation in the glass electrode dynamics for the fast measurement of pH