A propagator matrix method for periodically stratified media