Effect of Protein Folding State and Conformational Fluctuations on Hydrogel Formation and Protein Aggregation