Supramolecular assembly guided by photolytic redox cycling