Brodie, William Douglas, active 1787-1795, Consul at Malaga