Comparison theorems for nonlinear second order differential equations