Role of d orbitals in valence-band offsets of common-anion semiconductors.