Improved sine-wave parameter estimation for A/D converter testing