Charge-transfer effects on the absorption and fluorescence spectra of anthroic acids