Design and Manufacturing of Flexible Optical and Mechanical Metamaterials