Self-consistent determination of the transition state for protein folding: Application to a fibronectin type III domain