Fabrication of metamaterials in the optical spectral range