Account of diffusion in local thermodynamic equilibrium and two-temperature plasma models