A quantitative study of ion transport during substorms