Hamid Karzai takes office as first elected president of Afghanistan