Microstructure analysis of AZ31 magnesium alloy welds using phase-field models