Spectroscopic Studies of Some Aromatic Acids with a Heteroatom in the Side‐Chain