Topological approximation of the nonlinear Anderson model