Using a brain-machine interface to control a hybrid upper limb exoskeleton during rehabilitation of patients with neurological conditions