Recognizing motor imagery tasks from EEG oscillations through a novel ensemble-based neural network architecture