Oxygen sensor with solid electrolyte