Thermal effects in high power cavities for photoneutralization of D− beams in future neutral beam injectors