Adaptive smoothing: An improved method for spectral analysis and its application to seizure EEG