Smart Nanostructured Materials: From Molecular Self-Assembly to Advanced Applications