DNA hairpin folding kinetics and mechanisms