Characterization, stability, and application of domain walls in flexible mechanical metamaterials