Chemistry of N2O4 at high pressure: observation of a reversible transformation between molecular and ionic crystalline forms