Betweenness centrality: extremal values and structural properties