Energy of waves in a plasma