Masoud Pezeshkian replaces the late Ebrahim Raisi, who was killed in a helicopter crash in May. The new president pledged to continue the country's Shiite theocracy, but could bend its foreign policy with the West, against the challenge of government hardliners