Charge-neutral disorder and polytypes in heterovalent wurtzite-based ternary semiconductors: The importance of the octet rule