Stochastic analysis of the dynamics of nitrogen concentration in a stream ecosystem