Commissioning of the MAGNEX large-acceptance spectrometer