Device uses brain signals to help stroke patients regain hand mobility