Ab initio simulations of liquid systems: concentration dependence of the electric conductivity of NaSn alloys