Integral averages and the asymptotic behavior of solutions of second order ordinary differential equations