Local modulations of the spin-fluctuation-mediated pairing interaction by impurities in d-wave superconductors