Photochemical and Thermal cis/trans Isomerization of Cyclic and Noncyclic Azobenzene Dimers: Effect of a Cyclic Structure on Isomerization