An algorithm for detecting events in video EEG monitoring data of patients with craniocerebral injuries