On the asymptotic behavior of the solutions of a class of second-order linear differential equations