The British state at the margins of empire: extraterritoriality and governance in treaty port China, 1842-1927