Convergence to equilibrium of solutions of the backward Euler schemefor asymptotically autonomous second-order gradient-like systems