A Thomas-Fermi model of nuclei. II. Fission barriers and charge distributions