Two-stream instability, wave energy, and the energy principle