Electronic spectra, structure and photoisomerization of urocanic acid