ODE representation of tile drainage on hillslopes of varying topography