The Penetration of Gamma-Radiation through Thick Layers I. Plane Geometry, Klein-Nishina Scattering