A toolbox for computing the stability margin of uncertain systems