Monte Carlo simulations of solidification and solid-state phase transformation during directed energy deposition additive manufacturing