The Kronig Penney model and the emergence of energy gaps in periodic potentials