Near threshold photoionization of the ground and first excited states of C 2