Rotating nuclei in the Thomas-Fermi approach