The Mercenary Mandarin: How a British adventurer became a general in Qing-dynasty China