Relaxation dynamics induced in glasses by absorption of hard x-ray photons