The rotation from technology stocks has investors, at long last, scouring one of the least loved corners of the market: energy producers.