Electronic spectra and structure of the hydrogen halides