A kinetic zipper model with intrachain interactions applied to nucleic acid hairpin folding kinetics.