Three empirical studies on the spatial analysis of social interactions in elections