Karp's interpolation theorem for some classes of infinitary languages