Environmental impact of ecological agriculture at the territorial level