pH measurements using polarizable electrodes