First-principle study of electronic structure of Sn-doped amorphous In2O3 and the role of O-deficiency