Karzai declared Afghan president