A Feature Extraction Method Based on Dictionary Learning for EEG