Brain-Computer Interface for Clinical Purposes : Cognitive Assessment and Rehabilitation