State selective population of H2(v″=1, J″=1) and D2(v″=1, J″=2) and rotational relaxation in collisions with H2, D2, and He