Built-in test for performance characterization and calibration of phase-locked loops