Expansion of matter waves in static and driven periodic potentials