Phase-shift study of the quenching and trapping of Cd 228.8 nm resonance radiation