A model calculation of the surface elastic constants of a nematic liquid crystal