William Palmer — British army officer in the East India Company and diplomat (1740–1816)