The influence of intramolecular hydrogen bonding on the structure and E ↔ Z photoisomerization of urocanic acid derivatives