A numerical code for the analysis of magnetic white-dwarf spectra that includes field effects on the chemical equilibrium | Synapse