Molecular field theory of hysteresis in helix–coil transitions of polynucleotides