Optimization of the equalization procedure for a single-photon counting CdTe detector used for CT