MOSCNT: code for carbon nanotube transistor simulation