Stable disclination lines in nematic liquid crystals confined in thin films with periodic-planar surfaces: A Monte Carlo study