Topology-Driven Performance Analysis of Power Grids