Thermal renormalization of the anchoring energy of nematic liquid crystals