Asymptotic analysis of wave propagation through periodic arrays and layers