How does segregation vary between different urban areas? Using a k-nearest neighbor approach to segregation measurement