The Memory Perturbation Equation: Understanding Model's Sensitivity to Data