Influence of electronic excitations on the thermodynamics of small carbon clusters: the example of C3+