Effects of the medium on synthesis of nanopowders by wire explosion process