Dynamics of native oxide growth on CdTe and CdZnTe X-ray and gamma-ray detectors