Gilson, Alexander, active 1814-1824, Consul at Danzig