Bare nucleus S(E) factor of the H-2(d,p)H-3 and H-2(d,n)He-3 reactions via the Trojan Horse Method