Lattice relaxation, radiative and non-radiative deexcitation at localized defects