Living arrangements in sub-Saharan Africa between modernization and ethnicity