Human-in-the-loop prosthetic robot hand control through contextual adaptation