Stationary directed polymers and energy solutions of the Burgers equation