Google is intrigued by the possibility of selling ads across Yahoo’s network of Web sites