Simulation of radiation-induced defects