Chemiionization in collisions of He(23S) and He(21S) metastable atoms with H and H2