Excited States and Solvatochromic Shifts within a Nonequilibrium Solvation Approach: a New Formulation of the Integral Equation Method (IEF) at the SCF, CI and MCSCF level