Electronic spectra of 2-aminonaphthalene-6-sulfonate and related molecules. II. Effects of solvent medium on the absorption and fluorescence spectra