Measuring the Effects of Segregation in the Presence of Social Spillovers: A Nonparametric Approach