Halep beats Wang to reach Indian Wells quarter-finals