Mechanism of photoisomerization of 3,5-heptadienone