Stability of implicit neural networks for long-term forecasting in dynamical systems