Rouhani, rival to run in Iran’s presidential election; Ahmadinejad barred