Transient hydrodynamic finite-size effects in simulations under periodic boundary conditions