Time-dependent electric field in Al/CdTe/Pt detectors