A Spiking Neural Network Based Pipeline for Motor Imagery EEG Classification