Hoffman, Johann Philipp, Imperial Resident in London