A comprehensive analytical model for laser powder-fed additive manufacturing