Influence of the extrinsic curvature on two-dimensional nematic films