World powers reach nuclear deal with Iran, officials say