Templated fabrication of periodic arrays of metallic and silicon nanorings with complex nanostructures