Interactions of light with nanostructured materials