Equilibrium and nonequilibrium solvation and solute electronic structure. I. Formulation | Synapse