3D-printed metamaterials that stretch and fail by design