Influence of Oxygen Vacancies in Gas Sensors Based on Metal-Oxide Semiconductors: A First-Principles Study