British extraterritoriality in China: the legal system, functions of criminal jurisdiction, and its challenges, 1833-1943.