Application of Thomas-Fermi model to fullerene molecule and nanotube