The intersection of nanostructured materials with photonics and electronics