Temperature of thin targets in a pulsed electron beam