Using a brain-computer interface for rehabilitation : a case study on a patient with implanted electrodes