Synthesis of nanoparticles and nanostructured materials by self-sssembly