The MAGNEX magnetic spectrometer for double charge exchange reactions