Stormtime ring current heating of the ionosphere and plasmasphere