Impulsive waves in ghost-free infinite derivative gravity in anti–de Sitter spacetime