Single-trial EEG classification using in-phase average for brain-computer interface