Douglas, James, Sir, active 1769-1797, Consul-General at Naples