Surface heating by short X-ray pulses