Rafael Jodar has become the youngest semifinalist in Shanghai Masters history after advancing with victory against Casper Ruud.