Coupling Machine Learning Into Hydrodynamic Models to Improve River Modeling With Complex Boundary Conditions