Excitons in crystalline and amorphous SiO2: formation, relaxation and conversion to Frenkel pairs