British officer who commanded 12th Regiment at the Great Siege of Gibraltar and took Suriname (1742–1814)