Design And Implementation Of Eeg-Based Brain Computer Interfaces For Neuroprosthetics And Neurorehabilitation