Wave Propagation in Linear and Nonlinear Periodic Media