Text this: Optimization of territorial ecological space under the constraint of ecosystem service externalities