Neural prosthesis for motor function restoration in upper limb extremity