Controlled sp(2) Functionalization of Boron Doped Diamond as a Route for the Fabrication of Robust and Nernstian pH Electrodes.