The Trojan Horse Method as a tool to investigate low-energy resonances: The 18O(p, alpha)15N and 17O(p, alpha) 14N cases