Influence of the anchoring energy on the relaxation of the nematic deformation