Heat management of a compact x-ray source for microbeam radiotherapy and FLASH treatments.