A posteriori learning for quasi-geostrophic turbulence parametrization