Formation of metastable defects under irradiation of ceramics