Lewis Hamilton overtook Aston Martin's Lance Stroll in his Mercedes as he climbed to third in Sunday's race.