Production of a magnesium ion beam using the MIVOC method