Mercedes’ Hamilton takes pole at Malaysian GP