Baillie, William, 1737-1782, army officer in India