Periodic solutions of nonlinear second order differential equations