Optimisation of a potentiometric measurement system by calculation of the Allan variance