Brain-computer interfaces for motor rehabilitation, DOC assessment and communication.