Estimation of dispersion relations from short-duration molecular dynamics simulations