Transition of liquid metals into vapor in the process of pulse heating by current