Effective potentials for a class of supersymmetric theories