Effect of the polarity of the medium on the ionic radiation-induced polymerization of elemental (white) phosphorus