The first experimental observation of electronic transitions in C2+ and C2D+