War and elections in Afghanistan