Electronic structures of [M3(μ3-X)(μ2-S2)3]4+(M = Mo, Ti) cluster compounds and the effects of the μ3-X cap to the self-assembly in cluster synthesis