Optimal Design of Planar Metamaterials: Simulation, Optimization and Characterization