Self-compensation in nitrogen-doped ZnSe