On the design of lag window for the estimation of spectra