Structural and electronic properties of SnO2 doped with non-metal elements