Effect of surface electric field on the anchoring of nematic liquid crystals