Theoretical study of the electronic spectra of azobenzene dyes