George Russell beat Max Verstappen to pole position in a thrilling qualifying hour at the Singapore Grand Prix.