The inverse problem for periodic potentials