Effects of periodic matter in kaon regeneration