Synthesis of nanostructured materials using template-assisted electrodeposition