Stormtime ring current heating of the plasmasphere and ionosphere