Thermal analysis of a graphite first wall for fusion experiment RFX