Bottas grabs pole position from Hamilton