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