Unraveling effects of disorder on the electronic structure of SiO2 from first principles