Jastrow correlation factor for periodic systems