The trojan horse method as indirect technique in nuclear astrophysics