A multibody kinematic system approach for the design of shape-morphing mechanism-based metamaterials