Torsional rigidity of DNA and length dependence of the free energy of DNA supercoiling