A theoretical investigation of four electronic states of C6− and the ground state of linear C6