The theory of microcosm and its application in ecotoxicology