Displacement damage in irradiated metals and semiconductors