Effects of substorms on the stormtime ring current index Dst