Dynamic Movement Primitives for Cooperative Manipulation and Synchronized Motions