Potentials for (p, 0) and (1, 1) supersymmetric sigma models with torsion