Former Grand Slam champion Coco Gauff booked her return to the China Open semi-finals where in-form Paolo Badosa awaits.