Memory and forecasting capacities of nonlinear recurrent networks