Effects of subducting lithosphere on p-wave amplitudes and residuals