US Open Stan Wawrinka advances to quarterfinals after Novak Djokovic retires