Mechanics of deformation-triggered pattern transformations and superelastic behavior in periodic elastomeric structures