Electronic structure of bulk and defect α- and γ-Al2O3