Valencia: Martin pole on Bagnaia, Rossi tenth in the last Grand Prix of his life