Hamas, Islamic Jihad set conditions for agreement with Israel