A statistical method for build orientation determination in additive manufacturing