Calculation of stability radii for combinatorial optimization problems