Molecular theory of electronic spectroscopy in nonpolar fluids: Ultrafast solvation dynamics and absorption and emission line shapes