The Repsol Honda rider put in a scorching final lap, snatching pole position from Danilo Petrucci who led the Ducati offensive