Thermodynamics of dissolution and liberation of gases in the atomization of molten metals by plasma-induced expansion