Investigating the far- and near-field thermal radiation in carbon-based nanomaterials