Study of wire explosion in vacuum at different electrode polarities