Associative ionization in collisions between metastable helium and atomic nitrogen and oxygen