Modelling the structural stability of irradiated covalent compounds