George Russell secured pole position in a thrilling qualifying session at the Circuit Gilles Villeneuve.