Amazon-Whole Foods deal roils Wall St.; energy shares gain