The writhe distribution in DNA plasmids as derived from the free energy of supercoiling