World No.1 Jannik Sinner has thrashed Daniil Medvedev in Shanghai to reach his fifth ATP Masters semi-final of the season.