Investigation of magnetic field and shielding gas in electro-discharge deposition process