Measurement of theH2(d,p)H3reaction at astrophysical energies via the Trojan-horse method