Theory of the self-compensation in p-type ZnSe