Effect of Intramolecular H‐Bond‐Type Interactions on the Photochemistry of Aza‐Stilbene‐Like Molecules