Effect of hydrogen bond networks on the nucleation mechanism of protein folding.