Gravar-mail: Learned parametrized dynamic movement primitives with shared synergies for controlling robotic and musculoskeletal systems