Average extinction curves and relative abundances for quasi-stellar object absorption-line systems at 1 ≤zabs < 2