Black, Charles, Consul at Cadiz