Existence and approximation of solutions for nonlinear functional differential equations with periodic boundary value conditions