President Ashraf Ghani, center, and his chief rival in Afghanistan’s election