A smart artificial hand for amputees merges user and robotic control