Algorithm for constructing networks of species interaction in communities based on the results of environmental monitoring studies