Inducing graphite tube transformation with liquid gallium and flash discharge