Systematic atomic structure datasets for machine learning potentials: Application to defects in magnesium | Synapse