Quartararo wins first MotoGP title after Bagnaia crashes out at Misano