Defect Formation Mechanisms in Powder-Bed Metal Additive Manufacturing