Potentiometric oxygen sensor with solid state reference electrode