Calculate electrical conductivity from MD trajectories