Mass and energy analysis and space-resolved measurements of ions from plasma focus devices