van der Waals dispersion correction for periodic systems