Investigation on discharge mechanism of a particle beam triggered gas switch