Thickness of graphene and single-wall carbon nanotubes