Knowledge-based potentials in protein fold recognition