Surface charge model of a carbon nanotube: self-consistent field from Thomas-Fermi theory