The relationship between nested subsets, habitat subdivision, and species diversity