Electronic structures of [PtL4.cntdot.PtL4X2]4+ and NbX4 chains