Thermal analysis of carbon allotropes: an experiment for advanced undergraduates