Correcting robot mistakes in real time using EEG signals