A generalized core-polarization model for inelastic scattering