Classifying EEG for brain-computer interfaces: learning optimal filters for dynamical system features