A double-layer metastructured beam with contact-separation switchability