The rise and fall of Khoqand, 1709-1876 : Central Asia in the global age