How Gravitational Waves Can Reveal Unknown Alien Planets in Distant Galaxies