Conformational equilibrium and photochemistry of hexa-1,3,5-trienes