Effects of X-ray irradiation on optical property and defect relaxation in MeV ion-implanted MgO