Model studies of SnO2-based gas sensors: Vacancy defects and Pd additive effects