Observations and theory of the AMPTE magnetotail barium releases