Nontrivial solutions for a second order periodic boundary value problem with the nonlinearity dependent on the derivative