Critical transitions in ecological systems: bridging mechanistic theory and computational intelligence to forecast nonlinear transitions