A numerical method for computing the structured singular value