Toyota's Brendon Hartley claims pole position