Agreement on Iran nuclear deal within reach — but obstacles remain