Energetics during the main phase of geomagnetic superstorms