The one-dimensional approximation for infiltration in heterogeneous soils