A Monte Carlo study of the interaction of external beam X-radiation with inhomogeneous media.