Revealing the Mechanisms of Grain Nucleation and Formation During Additive Manufacturing