Correlation between plastic deformation parameters and radiation detector quality in HgI2