Unified structural classification of AB2 molecules and solids from valence electron orbital radii