Estimation of the Critical Value of the Second-Phase Particles in the Microstructure of AZ31 Mg Alloy by Phase-Field Methods