A formalization of the theory of sets from the point of view of combinatory logic