A Polymorphic Control Framework For Robot-Assisted Neurorehabilitation