A Budyko-type formulation for baseflow and direct runoff