Johann Georg Wille, Friedrich II. von Preußen