Aaron Rai wins Wyndham Championship after grueling final day