Trump rules out Iran attack before midterms, Tehran says ready for prolonged war