Excitons in periodic potentials