Ultrafast electron diffraction reveals rapid motions of atoms and molecules