Comparative study of the photoassociation reaction of He + X + → He X + ( X = H, D): Including multiphoton transitions and dissociations