An interval analysis based algorithm for computing the stability margin of uncertain systems