Closed-loop motor imagery EEG simulation for brain-computer interfaces