Wavelength-controlled supramolecular photocyclodimerization of anthracenecarboxylate mediated by γ-cyclodextrins.