Hamilton takes Malaysian GP pole ahead of Button