The Effect of Dislocation on the Energy Resolution of High-Purity Germanium Detectors