Spectrum Analysis of Waveform Digitizers by IDFT and Leakage Minimization