Mechanism of ion flow generation in vacuum arcs