Radiation-induced defects in dense phases of crystalline and amorphousSiO2