Effective Potentials for Protein Folding Models