Light- and solvent-driven morphological transformations of self-assembled hydrogen-bonded nanostructures.