The dynamics of disappearing pulses in a singularly perturbed reaction–diffusion system with parameters that vary in time and space