Influence of electron-beam parameters on the radiation-induced formation of graphitic onions