Reconstructing free-energy landscapes for nonequilibrium periodic potentials.