Local neural classifier for EEG-based recognition of mental tasks