On the asymptotic behavior of solutions for a class of second order nonlinear differential equations