A novel spike-and-wave automatic detection in EEG signals