Operational functionalities of air-quality W–Sn metal-oxide sensors correlating semiconductor defect levels and surface potential barriers