Calculation of ionization and total and partial charge exchange cross sections for collisions of C6+ and N7+ with H