Optimization of brain-computer interfaces by