THE PROBABILISTIC METHOD FOR PROBLEMS OF RADIATIVE TRANSFER. X. DIFFUSE REFLECTION AND TRANSMISSION IN A FINITE INHOMOGENEOUS ATMOSPHERE