Photodimerization of hydrophobic guests within a water-soluble nanocapsule