Snapping and switching of elastic arches with patterned preferred curvature | Synapse