Estimating and Detecting Slow-Wave Events in EEG Signals