Calculation of the maximum temperature on the carbon stripping foil of the Spallation Neutron Source