EEG Based Brain Machine Interface for Rehabilitation: A Guided Tour