Geodesic based centrality: Unifying the local and the global