Spatial effects in real networks: Measures, null models, and applications