The emergence of valency in colloidal crystals through electron equivalents