Evolution of the ring current during two geomagnetic storms