Analysis and Improvement of the Measurement of Interpersonal Attraction and Homophily