Galvanic synthesis of three-dimensional and hollow metallic nanostructures