The conditions for ecological sustainable development in the context of a double-limited selfpurification model of an aggregate water resource