Theory of the molecular transfer model for proteins with applications to the folding of the src-SH3 domain.