Sine-fitting by the energy-based method in the dynamic testing of ADCs