Commensurate and incommensurate vortex lattice melting in periodic pinning arrays