Template and template-free preparation of one-dimensional metallic nanostructures