An ecological model of settlement expansion in northwestern Morocco