Lattice dynamics and correlated atomic motion from the atomic pair distribution function