Asymptotic behavior of bounded solutions to a class of second order nonnonhomogeneous evolution equations