Boron-Doped Diamond as a Quasi-Reference Electrode.