Stocks rise as investors assess earnings