Oscar Piastri pips McLaren team-mate and title rival Lando Norris to pole position for the potentially title-deciding Qatar Grand Prix.