Third-ranked American Jessica Pegula has been crushed in straight sets by Paula Badosa at the quarter-final stage of the WTA's China Open in Beijing.