Gravar-mail: Energy Calibration of a CdTe Photon Counting Spectral Detector with Consideration of its Non-Convergent Behavior