Four-time French Open champion Iga Swiatek defeated Jessica Pegula to reach the Rome semi-finals, showing signs of returning to her dominant best on clay.