Existence and approximation of solutions for a class of nonlinear impulsive functional differential equations with anti-periodic boundary conditions