Stocks end higher on Wall Street as earnings roll in