Surface energy for nematic liquid crystals: a new point of view