Williams thrashes Sharapova to advance at US Open