Solvent-induced forces in protein folding