A Controlled Photodimerization of Cinnamic Acid in a Composite Bilayer of Dioctadecyldimethylammonium Bromide