Theoretical studies of the absorption spectra of polycyclic aromatic hydrocarbons