Calculation and interpretation of the absorption and fluorescence spectra of indole in the isolated state and aqueous solution