An Extension of Smith's Linear Theory of Orographic Precipitation: Introduction of Vertical Layers