Confinement and duality in supersymmetric gauge theories