Topological distributions and the torsional rigidity of DNA