New Iranian president to swear in on Aug. 4