A model of reference trajectory adaptation for interaction with objects of arbitrary shape and impedance | Synapse