EEG data recording and analysis