Bagnaia on brink of world title as MotoGP returns to Malaysia