Sinner to face Medvedev in Shanghai Masters quarter-finals