Understanding Microstructure Evolution During Additive Manufacturing of Metallic Alloys Using Phase-Field Modeling