Analytical and numerical adjoint solutions for cumulative streamflow depletion