Periodic solutions of second order nonlinear differential equations