The problem of ecosystem stability and some applications of one of the stochastic methods in investigation of this problem