K-shell capture by protons from O 2 , N 2 , and Ne