One-electron capture with simultaneous ionization in Cq+, Oq+ (q = 1–4)–Ar collisions