Optical Properties of Multi-Layer Structures. I. Polaritons