A Thorough Study on the Photoisomerization of Ferulic Acid Derivatives