Bagnaia sets a record-breaking pole as rivals Martin and Marquez crash out in an explosive Q2 session