Branes and the vacuum structure of supersymmetric gauge theories