Photodimerization of cinnamic acids controlled by molecular assemblies of surfactant amine N-oxides