Studies of solvent effect on electronic absorption spectra of some substituted benzenes and pyridines