Improving Brain-Computer Interface Performance By Using Dynamic Methods Based on Analysis of Cognitive State