Iga Swiatek won back-to-back French Open titles after beating Karolina Muchova in 6-2 5-7 6-4 in the final.