Numerical procedure for the evaluation of partial safety factors for steel structural elements