Afghan president Hamid Karzai sworn in for second term