Theoretical study of C2 and C−2 : X 1Σ+g , a 3Πu , X 2Σ+g , and B 2Σ+u potentials