Carbon nanotube and graphene device modeling and simulation