On the bond order of C2 and N2