Electromagnetic Waves in Stratified Media