Chemically treated tin oxide electrodes responsive to pH and sulfide