The influence of global self-heating on the Yarkovsky and YORP effects