An integrative ecological approach to the study of human settlements