Development and Validation of Deep-Learning Algorithms on Embedded Systems for Robot-Assisted Interactive Human-in-the-Loop Rehabilitation of the Upper Limbs