Fast and accurate ADC testing via an enhanced sine wave fitting algorithm