Solvent and pressure dependence of the absorption and fluorescence spectra of anthronitrile