Predicting Solidification Properties of Magnesium by Molecular Dynamics Simulations