On the formulation of optimization problems under uncertainty in mechanical design