The electronic structure of impurities and defects in SiO2