A Generalized Theory of DNA Loop Formation: Considering the Effects of Binding Topology and Sequence-Dependent Curvature.