Two-phase tension of a carbon nanotube