Untangling the roles of centrality and environmental contribution in diversity patterns across spatial scales