From task parameters to motor synergies: A hierarchical framework for approximately optimal control of redundant manipulators | Synapse