Collisions of metastable He-like C4+ ions on He and H2 targets