Iran, major powers agree historic nuclear deal-media-1