Energy spectra of the major ion species in the ring current during geomagnetic storms