Interactions for inelastic scattering derived from realistic potentials