Jorge Martin took his eighth pole of 2017, with Gabriel Rodrigo and Joan Mir completing the front row