Stanisław I Leszczyński, King of Poland, 1677-1766