The role of loop stacking in the dynamics of DNA hairpin formation.