Towards a brain computer interface-based rehabilitation: from bench to bedside