Photoisomerization and photodimerization of 3-(1- and 2-naphthyl)acrylate in bichromophoric systems.