Sarfraz ton guide Pakistan to reach quarter-finals