Theoretical study of the reactions of Ar++H2 and Ar++HD using the trajectory surface hopping method