Electron loss and single and double capture of C 3+ and O 5+ ions in collisions with noble gases