Social interaction and ethnic segregation