On the application of phase relationships to complex structures. XIX. Magic-integer representation of a large set of phases: the MAGEX procedure