Optimal Control of Nonlinear Groundwater Hydraulics: Theoretical Development and Numerical Experiments