An automatic tracking system for phase-noise measurement