Modeling of carbon nanotubes, graphene and their composites