A Method for Detection of Transient Events in EEG Signals