The temperature distribution in a thin metal film exposed to an electron beam