Coupling carbon nanomaterials with photochromic molecules for the generation of optically responsive materials