Vortex dynamics in superconductors with periodic pinning arrays