Energy-dependent Responses of Cadmium-Telluride (CdTe) Detectors to X-ray Photon Beams