Contribution of disulfide S2(2-) anions to the crystal and electronic structures in ternary sulfides, Ba12In4S19, Ba4M2S8 (M=Ga, In).