New Kronig–Penney equation emphasizing the band edge conditions