Nematic director deformation induced by a periodic surface anchoring strength