Understanding defect structures in metal additive manufacturing via molecular dynamics