Patterns of residential segregation