Interaction of protons and hydrogen atoms with CO molecules