Wall Street extends rally on strong earnings, economic optimism