Synthesis of nanostructured materials