A microscopic description of inelastic scattering. Application to nickel isotopes