Generalization of the Green–Ampt Theory for Horizontal Infiltration into Homogeneous Soils