Existence of periodic orbits of the second kind in the restricted problems of three bodies