Effects of dislocation walls on the performance of cadmium telluride X-ray detectors