Effects of weak anchoring on the equivalent anchoring energy in a nematic cell with large amplitude of the grooves