Astronomers detect a second planet orbiting two stars