Brain-machine interface in chronic stroke rehabilitation: a controlled study