Impulse-induced nonlinear dynamics of flexible mechanical metamaterials