Stocks extend gains on strong U.S. earnings, weak economic reports