Effects of soil layering on infiltration