Real-time measurement and correction of phase distortion in high-fidelity radars