Electromagnetic Optics of Thin-Film Coatings