An ecological approach to the planning of protected areas